package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.User;
import cn.sunlelin.educationserver.param.LoginParam;
import cn.sunlelin.educationserver.vo.R;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    public Boolean createUser(User user);
    public Boolean updateUser(User user);
    public Boolean updatePassword(User user);
    public User loginByUserName(User user);

    public R login(LoginParam loginParam);

    R register(LoginParam loginParam);

    R updateEmail(LoginParam loginParam);

    R findPassword(LoginParam loginParam);
    public List<User> findAll();
    public User selectUserAllById(Integer userId);
    public Boolean deleteUser(Integer userId);
    public User selectUserByName(String userName);
}
